using System;
using System.Collections.Generic;
using DapperExtensions.Mapper;
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Data
{
	public class DevJobplanTMapper : ClassMapper<DevJobplanT>
	{
		public DevJobplanTMapper()
		{
			Table("dev_jobplan_t");
			Map(f => f.Id).Column("id").Key(KeyType.Assigned);
			Map(f => f.PlanName).Column("plan_name");
			Map(f => f.PlanLevel).Column("plan_level");
			Map(f => f.PlanType).Column("plan_type");
			Map(f => f.PlanSubtype).Column("plan_subtype");
			Map(f => f.PlanStatus).Column("plan_status");
			Map(f => f.PlanStarttime).Column("plan_starttime");
			Map(f => f.PlanEndtime).Column("plan_endtime");
			Map(f => f.PlanCirclePeriod).Column("plan_circle_period");
			Map(f => f.PlanTeam).Column("plan_team");
			Map(f => f.PlanCircleUnit).Column("plan_circle_unit");
			Map(f => f.VerifyPerson).Column("verify_person");
			Map(f => f.PersonCreated).Column("person_created");
			Map(f => f.GmtCreated).Column("gmt_created");
			Map(f => f.PersonModified).Column("person_modified");
			Map(f => f.GmtModified).Column("gmt_modified");
			Map(f => f.StateInfo).Column("state_info");
			Map(f => f.IsUse).Column("is_use");
			Map(f => f.Version).Column("version");
		}
	}
}
